import com.dmotiko.general.*
import com.dmotiko.zonaoutlet.*

class ZORadioButton
extends BaseClip {
	
	private var mcActive:MovieClip;
	private var txt:TextField;
	private var mcTrigger:MovieClip;
	private var bActive:Boolean;
	
	private function ZORadioButton() {
		super();
		bActive = false;
		mcActive._visible = false;
	}
	
	private function initClip() {
		var root:ZORadioButton = this;
		mcTrigger.onRelease = function() {
			root.setActive( ! root.getActive() );
		}
	}
	
	public function getActive():Boolean {
		return bActive;
	}
	public function setActive(bActive:Boolean):Void {
		this.bActive = bActive;
		mcActive._visible = bActive;
		dispatchEvent( { target: this, type: BaseClipEvent.CHANGED } );
	}
	private function refreshData() {
		txt.text = data.label;
	}
	
	
}